import request from '@/utils/request'
// 查询返修信息
export function queryBySfc(sfc) {
  return request({
    url: `/md/productionExecute/selectReworkList?sfc=${sfc}`,
    method: 'get'
  })
}
// 确认返修
export function confirmRepair(data) {
  return request({
    url: `/md/productionExecute/okRework`,
    method: 'post',
    data
  })
}

// 获取工位、工序等基本信息
export function getUserInfo() {
  return request({
    url: `/md/productionExecute/getUserInfo`,
    method: 'get'
  })
}

/*

/!**
 * 扫描SN 并带出:1成品上游信息2送修明细
 * @param param => snCode
 *!/
export function query(param) {
  return request({
    url: `/me/repair/getStationInformation?param=${param}`,
    method: 'get'
  })
}

/!**
 * 维修录入
 * @param data
 *!/
export function enterInfo(data) {
  return request({
    url: `/me/repair/RepairStation/inputRepairData`,
    method: 'post',
    data
  })
}

/!**
 * 报废或维修
 * @param data.instructions FS-报废 RF-维修完成
 * @param data.sfc
 * @param data.wipLogBo
 *!/
export function scrapOrRepair(data) {
  return request({
    url: `/me/repair/RepairStation/scrapOrRepairFinish`,
    method: 'post',
    data
  })
}
*/
